package com.caoyuqi.picture.mapper;

import com.caoyuqi.picture.model.Title;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

@Mapper
public interface TitleMapper {
    @Select("SELECT * from title")
    List<Title> queryAllTitle();
    @Select("SELECT theTure from title where id = #{id}")
    String queryTrueById(Integer id);
}
